import axiosInstance from '../utils/request'
import type{IResponse} from '../types/types'

/**
 * 产品列表
 *   shopKey: 店铺名称
 *   productKey: 产品名称
 * @returns 
 */
export const RequestShopList = (pageNo:number,pageSize:number):Promise<IResponse>=>{
    return axiosInstance({
        method:'get',
        url:'/api/shop',
        params:{
            pageSize,
            pageNo,
        }
    })
}

/**
 * 轮播
 */
export const RequestBanner = ():Promise<IResponse>=>{
    return axiosInstance({
        method:'get',
        url:'/api/banner'
    })
}
